package cn.fenqing168.springcloud.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 库存dao
 * @author fenqing
 */
@Mapper
@Repository
public interface StorageDao {

    /**
     * 减少库存
     * @param productId 产品id
     * @param count 减少的数量
     */
    void decrease(@Param("productId") Long productId, @Param("count") Integer count);
}
